import request from '@/utils/request'

// 查询房源租赁列表
export function listBuiRoomLease(query) {
  return request({
    url: '/park/buiRoomLease/list',
    method: 'get',
    params: query
  })
}

// 查询房源租赁详细
export function getBuiRoomLease(id) {
  return request({
    url: '/park/buiRoomLease/' + id,
    method: 'get'
  })
}

// 新增房源租赁
export function addBuiRoomLease(data) {
  return request({
    url: '/park/buiRoomLease',
    method: 'post',
    data: data
  })
}

// 修改房源租赁
export function updateBuiRoomLease(data) {
  return request({
    url: '/park/buiRoomLease',
    method: 'put',
    data: data
  })
}

// 删除房源租赁
export function delBuiRoomLease(id) {
  return request({
    url: '/park/buiRoomLease/' + id,
    method: 'delete'
  })
}
